#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/delay.h>
#include <linux/scatterlist.h>
#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include <linux/async_tx.h>
#include <linux/slab.h>
#include <linux/videodev2.h>

#include <asm-generic/errno-base.h>
#include <uapi/asm-generic/errno.h>

/**
 *
 * https://www.kernel.org/doc/html/v4.9/80211/introduction.html
 *
 *   https://www.kernel.org/doc/html/v4.9/media/uapi/v4l/capture.c.html
 *
 * vidctrl /dev/video --input=0 --format=YUYV --size=352x288
*
*   dd if=/dev/video of=myimage.422 bs=202752 count=1
 *
 */


int my_probe(struct spi_device *spi) {
	int ret = 0;


	return ret;

}

int my_remove(struct spi_device *spi) {

	return 0;
}

static const struct of_device_id tft9488_dt_ids[] = { { .compatible =
		"ilitek,ili9488" }, { }, };

MODULE_DEVICE_TABLE(of, tft9488_dt_ids);

static struct spi_driver spidev_spi_driver = { .driver = { .name =
		"ilitek,ili9488", .of_match_table = of_match_ptr(tft9488_dt_ids), },
		.probe = my_probe, .remove = my_remove, };

module_spi_driver(spidev_spi_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Andy");
MODULE_DESCRIPTION("A sample c  driver");
